package com.example.musicbox.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 帅哥是我
 * @since 2022-08-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="MUser对象", description="")
public class MUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户主键id")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户姓名")
    @TableField("userName")
    private String username;

    @ApiModelProperty(value = "用户邮箱")
    @TableField("uEmail")
    private String uemail;

    @ApiModelProperty(value = "用户密码")
    @TableField("uPassword")
    private String upassword;

    @ApiModelProperty(value = "用户手机号码")
    @TableField("uPhone")
    private String uphone;

    @ApiModelProperty(value = "注册时间")
    @TableField(value = "registerData",fill = FieldFill.INSERT)
    private LocalDateTime registerdata;

    @ApiModelProperty(value = "最后登录时间")
    @TableField(value = "lastLoignData",fill = FieldFill.INSERT)
    private LocalDateTime lastloigndata;

    @ApiModelProperty(value = "用户状态 （0为正常 1为异常，则不给予登录）")
    @TableField("uStatus")
    private String ustatus;

    @ApiModelProperty(value = "是否为超级管理员")
    @TableField("isAdmin")
    private String isadmin;

    @ApiModelProperty(value = "用户vip等级")
    @TableField("vipLevel")
    private Integer viplevel;

    @ApiModelProperty(value = "用户头像url")
    @TableField("uPhoto")
    private String uphoto;


}
